package com.github.operationlog;

import lombok.Getter;
import lombok.Setter;

@Setter
@Getter
public class EntityField {
    /**
     * 字段名
     */
    private String name;

    /**
     * 字段说明
     */
    private String note;

    /**
     * 是否是主键字段
     */
    private boolean identity;

    public EntityField(String name, boolean identity) {
        this.name = name;
        this.note = name;
        this.identity = identity;
    }

    public EntityField(String name, String note, boolean identity) {
        this.name = name;
        this.note = note;
        this.identity = identity;
    }
}